﻿using DataModels;
using Microsoft.Extensions.Logging;

namespace SEGIService.DataSync
{
    public class HelloWorldTask(ILogger<HelloWorldTask> logger) : SEGIIScheduledTask
    {
        private readonly ILogger<HelloWorldTask> _logger = logger;

        // 每分钟执行一次
        public string Schedule => "*/1 * * * *";

        public Task ExecuteAsync(CancellationToken cancellationToken)
        {
            _logger.LogInformation("Hello World!");
            return Task.CompletedTask;
        }
    }
}
